package com.css.dzj.dzjap.modules.record.approject.mapper;

import com.css.dzj.dzjap.modules.record.approject.entity.ApRecordEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ApRecordMapper extends JpaRepository<ApRecordEntity, String>, JpaSpecificationExecutor<ApRecordEntity>,
        QuerydslPredicateExecutor<ApRecordEntity> {
   /* @Query(nativeQuery = true,value = "select * from AP_RECORD a where a.RECORD_LEVEL=:recordLevel and a.RECORD_PROJECT_ADDRESS like %:location%")
    List<ApRecordEntity> getApRecordListByRecordLevel(@Param("location") String location,@Param("recordLevel") String recordLevel);*/
}
